# -*- mode: snippet -*-
# name: File open using Try finally
# key: file_open_try_finally
# key: open_file_try_finally
# contributor: Shuguang Sun
# --
try:
    f_sample = open("$0", "r")
    print(f_sample.read())
finally:
    f_sample.close()
